/**
 * @desc 放代码模板用的，有需要就在这复制
 */

const apiTemplate = new Promise()

// 弹出输入框
this.$prompt('提示内容', {
    customClass: 'custom-msgbox custom-prompt',
    showCancelButton: false,
    inputType: 'textarea',
    inputPattern: /^\S/,
    inputErrorMessage: '表单验证提示'
}).then((val) => {
    const param = {};
    apiTemplate(param).then(res => {
        this.getList();
        this.$notify({
            message: this.$t('global.submitSuccess'),
            type: 'success'
        });
    });
});

// 二次确认弹窗
this.$confirm('小标题', '大标题', {
    customClass: 'custom-msgbox',
    center: true
}).then(() => {
    this.memberPassIds(this.selectItems).then(res => {
        this.getList(); // 刷新列表
        this.$notify({
            message: this.$t('global.submitSuccess'),
            type: 'success'
        });
    });
});
